home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
biblio
/
bibtex
/
utils
/
bibtools
/
printbib
(
.txt
)
< prev
next >
Wrap
LaTeX Document
|
1992-09-03
|
1KB
|
52 lines
#!/bin/csh -f
# printbib - print a full bibtex bib file out
# David Kotz
# usage:
# printbib bibfile...
# Then send the dvi file 'abstract.dvi' to the printer
# (usage varies; try lpr -d abstract.dvi)
if ($#argv == 0) then
echo usage: printbib bibfile...
exit 1
endif
if ($1:e == "bib") then
set files=($1:r)
set files=($1)
endif
shift
foreach f ($*)
if ($f:e == "bib") then
set files="$files,$f:r"
else
set files="$files,$f"
endif
echo creating abstract.tex for $files
cat > abstract.tex <<EOF
\documentstyle[11pt]{article}
\sloppy
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9in}
\setlength{\topmargin}{-0.5in}
\setlength{\oddsidemargin}{0pt}
\setlength{\evensidemargin}{0pt}
\newcommand{\eg}{e.g.} % e.g.
\newcommand{\ie}{i.e.} % i.e.
\newcommand{\etc}{etc.} % etc.
\newcommand{\vs}{{\em vs.}} % vs.
\begin{document}
\begin{center} \Large Bibliography files \large \\\\
echo $files >> abstract.tex
cat >> abstract.tex <<EOF
\\\\ \today
\end{center}
\nocite{*}
\bibliographystyle{abstract}
echo "\bibliography{$files}" >> abstract.tex
echo '\end{document}' >> abstract.tex
rm -f abstract.{aux,log,dvi,bbl,blg}
set echo
latex abstract.tex
bibtex abstract
latex abstract.tex
latex abstract.tex